# -*- coding: utf-8 -*-
"""
Created on Thu Sep 12 21:38:09 2024

@author: 焊板子的兔子
"""

import sys
from PySide6.QtWidgets import QApplication,QWidget
import login
from PySide6.QtCore import Slot

class myWidget(QWidget):
    def __init__(self, parent = None):
        super().__init__(parent)
        self.ui = login.Ui_Form()#实例化login.py文件中的Ui_Form类
        self.ui.setupUi(self)
        
    @Slot()
    def on_btnSave_clicked(self):
        print("数据已保存")
        
        
if __name__ == "__main__":
    app = QApplication.instance()   #一个应用程序实例对象
    if app is None:
        app = QApplication()
    myWindow = myWidget()
    myWindow.show()
    n = app.exec()
    sys.exit(n)